package org.jiucheng.magpiebridge.server.aio.proxy;

import java.nio.channels.AsynchronousServerSocketChannel;

import org.jiucheng.magpiebridge.server.aio.ClientAttachment;

public class ProxyServerAttachment {
    
    private AsynchronousServerSocketChannel proxyServer;
    private ClientAttachment clientAttachment;
    private String remote;
    
    public ProxyServerAttachment(AsynchronousServerSocketChannel proxyServer) {
        this.proxyServer = proxyServer;
    }
    
    public AsynchronousServerSocketChannel getProxyServer() {
        return proxyServer;
    }
    
    public ClientAttachment getClientAttachment() {
        return clientAttachment;
    }
    
    public ProxyServerAttachment setClientAttachment(ClientAttachment clientAttachment) {
        this.clientAttachment = clientAttachment;
        return this;
    }
    
    public ProxyServerAttachment setRemote(String remort) {
        this.remote = remort;
        return this;
    }
    
    public String getRemote() {
        return remote;
    }
}
